import { close, connect } from "../../util/mongo"
export default defineEventHandler(async (event) => {
   const {db,client} = await connect()
        const collection = db.collection('usage')
       const data = await readBody(event)
//        console.log(data)
        const result = await collection.insertOne(data)
        close(client)
        return result
})
